package services;

import dao.IWarehousing;
import factory.WarehousingDaoFactory;
import vo.Warehousing;

import java.util.List;

public class WarehousingServicempl implements IWarehousingService{
    IWarehousing iWarehousing= WarehousingDaoFactory.getInstance();//获取具体连接对象
    @Override
    public boolean add(Warehousing warehousing) {
        return iWarehousing.add(warehousing);
    }

    @Override
    public boolean delete(Warehousing warehousing) {
        return iWarehousing.delete(warehousing);
    }

    @Override
    public boolean modify(Warehousing warehousing) {
        return iWarehousing.modify(warehousing);
    }

    @Override
    public Warehousing getcustombyid(String id) {
        return iWarehousing.getcustombyid(id);
    }

    @Override
    public List<Warehousing> getall() {
        return iWarehousing.getall();
    }
}
